//
//  MyMetalLayer.h
//  hello-pbr
//
//  Created by jerrryliu on 2019/12/30.
//

#import <UIKit/UIKit.h>
#import <filament/Engine.h>
#import <filament/Camera.h>

@interface FilamentRender : NSObject
@property (nonatomic, assign, readonly)filament::Engine* engine;
@property (nonatomic, assign, readonly)filament::Camera* camera;
@property (nonatomic, assign, readonly)filament::Scene* scene;
@property (nonatomic, assign)CGRect viewPort;

- (instancetype)initWithViewPort:(CGRect)viewPort
					 nativeLayer:(void *)nativeLayer;
 
- (void)startLoopRenderWithPerFrameCallback:(void(^)(void))perFrameCallback;
- (void)stopLoopRender;
- (void)doRenderOnce;

- (void)removeEntity:(utils::Entity)entity;
- (void)removeEntitys:(utils::Entity *)entity count:(NSInteger)count;
@end
